package com.pudding.controller;

import com.pudding.service.InitService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/init")
@RequiredArgsConstructor
public class InitController {

    private final InitService initService;

    @GetMapping("/initData1")
    public void initData() {
        initService.init();
    }

    @GetMapping("/initData2")
    public void initData2() {
        initService.init2();
    }
}
